using System;

namespace Framework.Core.Process
{
    public class ProcessResultException : Exception
    {
        public ProcessResultException(ProcessResult processResult)
        {
            ErrorOuput = processResult.ErrorOutput;
            StandardOuput = processResult.StandardOutput;
            ExitCode = processResult.ExitCode;
        }

        public string StandardOuput { get; private set; }
        public string ErrorOuput { get; private set; }
        public int ExitCode { get; private set; }
    }
}